@model ProjectCodeS.Models.TicketItem

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>TicketItem</legend>

    <div class="display-label">Name</div>
    <div class="display-field">@Model.Name</div>

    <div class="display-label">Price</div>
    <div class="display-field">@String.Format("{0:F}", Model.Price)</div>

    <div class="display-label">Ticket</div>
    <div class="display-field">@(Model.Ticket == null ? "None" : Model.Ticket.Name)</div>

    <div class="display-label">Item</div>
    <div class="display-field">@(Model.Item == null ? "None" : Model.Item.Name)</div>

    <div class="display-label">Colors</div>
    <div class="display-field">@(Model.Colors == null ? "None" : Model.Colors.Count.ToString())</div>

    <div class="display-label">Textures</div>
    <div class="display-field">@(Model.Textures == null ? "None" : Model.Textures.Count.ToString())</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.Id }) |
    @Html.ActionLink("Back to List", "Index")
</p>


